package com.d.abstreact;
            //各个静态方法属性之间的运行顺序
public class TestLoadSort {
    public static void main(String[] args) {

        new Son();
    }
}
class Farther{
    static String a="父类静态属性";
    static {
        System.out.println(a);
        System.out.println("父类静态代码块");
    }
    String b="父类实例属性";
    {
        System.out.println(b);
        System.out.println("父类实例代码块");
    }
    public Farther(){
        System.out.println("父类构造方法");

    }
}
class Son extends Farther{

    static String a2="子类静态属性";
    static {
        System.out.println(a2);
        System.out.println("子类静态代码块");
    }
    String b2="子类实例属性";
    {
        System.out.println(b2);
        System.out.println("子类实例代码块");
    }
    public Son(){
        System.out.println("子类构造方法");

    }
}
